package com.qf.dao;

import com.qf.pojo.PageBean;
import com.qf.pojo.Product;

import java.sql.SQLException;
import java.util.List;

public interface ProductDao {
    List<Product> selectProduct() throws SQLException;

    List<Product> selectHotProduct() throws SQLException;

    Product selectProductById(String pid) throws SQLException;

    List<Product> selectProductByPage(int currentPage, int pageSize, String cid) throws SQLException;

    int findTotalCountByCid(String cid) throws SQLException;

}
